﻿
namespace ZR.Model.Dto.Business.ProductionControl {
    /// <summary>
    /// 批次追溯查询对象
    /// </summary>
    public class CksBatchCodeDataQueryDto : PagerInfo {

        /// <summary>
        /// 产品批次码
        /// </summary>
        public string BatchCode { get; set; }

        /// <summary>
        /// 产线编号
        /// </summary>
        public string ProductionLineCode { get; set; }

        /// <summary>
        /// 站点编号
        /// </summary>
        public string WorkstationCode { get; set; }
    }

    /// <summary>
    /// 批次追溯输入输出对象
    /// </summary>
    public class CksBatchCodeDataDto {

        [Required(ErrorMessage = "Id不能为空")]
        public int Id { get; set; }

        [Required(ErrorMessage = "PLCID不能为空")]
        public int PlcId { get; set; }

        [Required(ErrorMessage = "数据块不能为空")]
        public int DbBlock { get; set; }

        [Required(ErrorMessage = "产品批次码不能为空")]
        public string BatchCode { get; set; }

        [Required(ErrorMessage = "产品类型不能为空")]
        public string Type { get; set; }

        public bool Nullity { get; set; }

        public DateTime? CreateTime { get; set; }

        public DateTime? ModifyTime { get; set; }

        public bool IsDeleted { get; set; }

        public string ProductionLineCode { get; set; }

        public string WorkstationCode { get; set; }
        //[ExcelColumn(Name = "产品类型")]
        //public string TypeLabel { get; set; }
    }
}